HttpHeader

fun HttpHeader(name: String, value: String): HttpHeader
fun HttpHeader(name: String, value: String): HttpHeader

Creates a new instance of HttpHeader with the given name and value.

Since

8.0.0

Parameters

name

The name of the HTTP header.

value

The value of the HTTP header.

Throws

if name is empty or blank.